<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    #outer {
      transform: perspective(750px) rotateY(60deg) rotateX(-20deg);
      transform-style: preserve-3d;
      background-color: antiquewhite;
    }

    #inner {
      transform: perspective(750px) translateZ(60px) rotateX(45deg);
      background-color: deeppink;
    }
  </style>
</head>
<body>
  <div id="outer">
    outer
    <div id="inner"></div>
  </div>
</body>
</html>